<?php

class Application_Form_BuscaCampanha extends Zend_Form
{

    public function init()
    {
    	$t = Zend_Registry::get('translator');    	
        $this->setName('form_busca_campanha');
        $this->setAction('');
        $this->setMethod('post');
        
        $buscar = new Zend_Form_Element_Submit('Buscar');
        $buscar->setAttribs(array('title'=>$t->translate('PESQUISAR'),'style'=>'font-weight:bold;'));
        $buscar->removeDecorator('DtDdWrapper');
		
        
        $email = new Zend_Form_Element_Text('texto');
        $tipo = new Zend_Form_Element_Hidden('tipo');
        $tipo->setValue('buscaIndexada');
        //$email->setLabel($t->translate('PESQUISAR_EMAIL'));
        //$email->setValue('Digite o e-mail aqui');
        $email->setAttribs(array('size'=>'60', 
        						 'id'=>'input-pesquisa',
        						'placeholder'=>"Digite um texto aqui"));
        $email->setRequired(true)->removeDecorator('Label');
        
        $this->addElements(array($email,$buscar,$tipo));        
    }


}

